package com.app.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "tb_marcas")
@NamedQueries({ 
	@NamedQuery(name = "Marcas.getListMarcas", query = "select c from Marca c "),
	@NamedQuery(name = "Marcas.searchMarca", query = "select c from Marca c where c.id = :id "),
	@NamedQuery(name = "Marcas.searchMarcaByName", query = "select c from Marca c where c.descripcion = :descripcion ")
	
})
public class Marca implements Serializable {

	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID")
	private Long id;
	private String descripcion;
	private String estado;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDescripcion() {
		return descripcion;
	}

	public void setDescripcion(String descripcion) {
		this.descripcion = descripcion;
	}

	public String getEstado() {
		return estado;
	}

	public void setEstado(String estado) {
		this.estado = estado;
	}

}
